package com.guanjialhx.utils;

/**
 *  
 *   All rights Reserved, Designed By www.changhubao.com
 *   @projectName chb
 *   @title     CodeMsg   
 *   @package    com.changhubao.chb.utils  
 *   @description      
 *   @author 李相    
 *   @date   2019/6/20 17:15  
 *   @version V1.0.0
 *   @copyright 2019 www.changhubao.com
 *   注意 本内容仅限于长护宝科技有限公司，禁止外泄以及用于其他的商业 
 *  
 */
public class CodeMsg {
    private int retCode;
    private String message;
    // 按照模块定义CodeMsg

    /**
     * 通用异常
     */
    public static CodeMsg SERVER_EXCEPTION = new CodeMsg(500100,"服务端异常");

    public static CodeMsg registration_failed = new CodeMsg(601,"首次签到人脸注册失败，请联系客服");
    public static CodeMsg face_recognition_failure = new CodeMsg(602,"人脸识别失败,请联系客服");
    public static CodeMsg fileIsEmpty = new CodeMsg(604,"图片传输失败");
    public static CodeMsg mobilePhoneNumberIsEmpty = new CodeMsg(605,"手机号为空");
    public static CodeMsg systemMaintenance = new CodeMsg(606,"由于aliyun系统维护，暂时无法登陆！！！");
    public static CodeMsg failedToGetVerificationCode = new CodeMsg(607,"获取验证码失败...");
    public static CodeMsg verificationCodeError = new CodeMsg(608,"登陆验证码错误");
    public static CodeMsg wrongLoginPhoneNumber = new CodeMsg(609,"登陆手机号错误，请联系客服人员");
    public static CodeMsg verificationCodeIsInvalid = new CodeMsg(610,"验证码实效，请重新获取验证码");
    public static CodeMsg operationTimeDoesNotMatch = new CodeMsg(611,"请在每日10点后进行工单核对，感谢您的配合");
    public static CodeMsg phoneNumberError = new CodeMsg(612,"手机号错误，请联系客服更改手机号");
    public static CodeMsg alreadySingIn = new CodeMsg(613,"该老人今日已成功打卡，请勿重复打卡");
    public static CodeMsg checkInFailed_1 = new CodeMsg(500201, "打卡签入失败");
    public static CodeMsg checkInFailed_2 = new CodeMsg(500202, "打签卡出失败");
    public static CodeMsg checkInFailed_3 = new CodeMsg(500203, "离线签到签出失败");
    public static CodeMsg checkInFailed_4 = new CodeMsg(500204, "图片上传失败");
    public static CodeMsg checkInFailed_5 = new CodeMsg(500205, "申请视讯通讯令牌失败");
    public static CodeMsg checkInFailed_6 = new CodeMsg(500206, "服务时长不足，无法签出");
    private CodeMsg(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }
    public int getRetCode() {
        return retCode;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }

}
